﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMTVision.Widgets.Framework;

namespace CMTVision.WidgetWeb.Widgets
{
    public partial class CalendarWidget : BaseWidget
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MainCalendar.SelectedDate = DateTime.Today;
            }
        }

        protected void MainCalendar_SelectionChanged(object sender, EventArgs e)
        {
            SelectedTextBox.Text = MainCalendar.SelectedDate.ToShortDateString();
        }
    }
}